package com.example.weblending.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.weblending.domain.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.weblending.domain.User;

/**
* @author Administrator
* @description 针对表【post】的数据库操作Service
* @createDate 2023-05-03 10:24:40
*/
public interface PostService extends IService<Post> {

    boolean create(Post post, User user);

    Page<Post> getList(long page, long limit, User user);

    Page<Post> getHistory(long page, long limit, User user);

    Page<Post> getExamine(long page, long limit, User user);

    Page<Post> getApprove(long page, long limit, User user);

    boolean setState(int id, int i, User user);

    boolean delete(int[] list, User user);

    Page<Post> getShow(long page, long limit, User user);

    Page<Post> getPrime(long page, long limit, User user);
}
